<?php
        

$config = array(
	'article' => array(
		array(
			'field' =>	'title', 	
			'label' =>	'文章标题',
			'rules' =>	'required|max_length[1024]|min_length[1]'
			),
		array(
			'field' => 'type',
			'label' => '类型',
			'rules' => 'required|integer'
			),
		array(
			'field' => 'cid',
			'label' => '栏目',
			'rules' => 'required|integer'
			),
		array(
			'field' => 'info',
			'label' => '文章摘要',
			'rules' => 'required|max_length[1000]'
			),
		array(
			'field' => 'content',
			'label' => '文章内容',
			'rules' => 'required|max_length[30000]'
			)
	),
	'cate' => array(
        	array(
                'field' => 'cname',
                'label' => '栏目',
                'rules' => 'required|max_length[10]'
            )
	),
	'cate_name' => array(
		array(
			'field' => 'cid',
			'label' => '栏目id',
			'rules' => 'required|integer'
		),
		array(
			'field' => 'cname',
			'label' => '栏目名称',
			'rules' => 'required|max_length[15]'
		)
	),
	'del_cate' => array(
		array(
			'field' => 'cid',
			'label' => '栏目id',
			'rules' => 'required|integer'
		)
	)
);